package com.bjdd.jdy.ui.signScan;

import com.baidu.location.BDLocation;
import com.bjdd.jdy.base.BaseModel;
import com.bjdd.jdy.base.BasePresenter;
import com.bjdd.jdy.base.BaseResult;
import com.bjdd.jdy.base.BaseView;

import rx.Observable;

/**
 * Created by Administrator on 2017/5/8.
 */

public interface SignScanContract {
    interface View extends BaseView{
        void codeBack(String data);
        void canNotSign();
        void canSign();
    }
    interface Model extends BaseModel{
        Observable<BaseResult<String>> getCodeData(String token,String orderId);
    }
    abstract class Presenter extends BasePresenter<Model,View>{
        abstract void getQrCode(String orderId);
        abstract boolean isRange(double lat,double lng,double lat1,double lng1);
        abstract void isCanSign(double lat,double lng);
        abstract void locationBack(BDLocation location);
    }
}
